<?php
/**
 * Fake4
 * @copyright   Copyright(c) 2024-2034
 * @author      tianjie <527707665@qq.com>
 * @link        http://www.tinphp.com/
 */

// 检测PHP环境
if (version_compare(PHP_VERSION, '7.1.0', '<') || version_compare(PHP_VERSION, '8.0.0', '>')) {
    header("Content-type: text/html; charset=utf-8");
    die('PHP 版本必须 7.1 至 8.0 !');
}
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
    require __DIR__ . '/../vendor/autoload.php';
    (new tian\App())->run()->send();
} else {
    echo "Please run 'Composer install' to install third-party libraries.";
}